<? global $FullUrl, $lg, $mem_detail; ?>

<div class="right_title">
  <h4>
    <p>
      <?=MEMBER_DETAIL?>
    </p>
  </h4>
</div>
<div id="frame_center">
  <div class="register">
    <form action="<?=$FullUrl?>/index.php?do=member&act=modify&lg=<?=$lg?>" method="post">
      <div>
        <div class="reg_top">
          <p class="pelement">
            <?=LABEL_NAME?>
          </p>
          <p>
            <input tabindex = 1 class="txt_name" type="text" name="name_reg" id = "name_reg" value="<?=$mem_detail['name'];?>"/>
          </p>
          <p class="pelement">
            <?=LABEL_ADDRESS?>
          </p>
          <p>
            <input tabindex = 2 class="txt_name" type="text" name="address_reg" id = "address_reg" value="<?=$mem_detail['address'];?>"/>
          </p>
        </div>
        <div class="reg_left">
          <p class="pelement">
            <?=LABEL_EMAIL?>
          </p>
          <p>
            <input readonly tabindex = 3 class="txt_email" type="text" name="email_reg" id="email_reg" value="<?=$mem_detail['email'];?>"/>
          </p>
          <p class="pelement">
            <?=LABEL_PHONE?>
          </p>
          <p>
            <input tabindex = 7 class="txt_phone" type="text" name="phone_reg" id="phone_reg" value="<?=$mem_detail['phone'];?>"/>
          </p>
        </div>
        <div class="reg_right">
          <p class="pelement">
            <?=LABEL_BIRTHDAY?>
          </p>
          <select name="day" class="birthday" id="day">
            <? for($i = 1; $i < 32; $i++)
					{?>
            <option <?=$mem_detail['day']==$i?'selected':''?> value="<?=$i?>">
            <?=$i?>
            </option>
            <?
                    }
					?>
          </select>
          <div class="space5">&nbsp;</div>
          <select name="month" class="birthday" id="month">
            <? for($i = 1; $i < 13; $i++)
					{?>
            <option <?=$mem_detail['month']==$i?'selected':$i==1?'selected':''?> value="<?=$i?>">
            <?=$i?>
            </option>
            <?
                    }
					?>
          </select>
          <div class="space5">&nbsp;</div>
          <select name="year" class="birthday" id="year">
            <? for($i = 1900; $i < 2011; $i++)
					{?>
            <option <?=$mem_detail['year']==$i?'selected':$i==1980?'selected':''?> value="<?=$i?>">
            <?=$i?>
            </option>
            <?
                    }
					?>
          </select>
        </div>
        <div class="captcha">
          <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=<?=PUBLIC_KEY_GOOGLE?>"></script>
          <noscript>
          <iframe src="http://www.google.com/recaptcha/api/noscript?k=<?=PUBLIC_KEY_GOOGLE?>" height="100" width="100" frameborder="0"></iframe>
          <br/>
          <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
          <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
          </noscript>
        </div>
      </div>
      <div style="clear:both"></div>
      <br/>
      <div class="btn_reg_form">
        <input class="button" type="submit" value="<?=UPDATE?>" onclick="return CheckAllMemberReg();"/>
        <input class="button" type="reset" value="<?=BTN_REGISTER_RETRY?>"/>
      </div>
    </form>
  </div>
</div>
<?=isset($_SESSION['mess'])?AlertMessage($_SESSION['mess']):''; unset($_SESSION['mess']);?>
